/*

------author : vinee.han--------
------time   : 2015-6-3 15:42:20---------
------codevs.cn   1011  recursion---------

*/

#include <iostream>
using namespace std;

int cnt = 0;
int temp = 0;

int fun(int n)
{
	if(n == 0 || n == 1)
		return 1;
	int res = 1;
	for(int i=1;i*2<=n;i++)
	{
		res += fun(i);
	}
	return res;
}

int main()
{
	int n;
	cin>>n;	
	cout<<fun(n)<<endl;
	cin>>n;
	return 0;
}